<template>
  <div class="view" v-if="$route.path === path">
    <slot></slot>
  </div>
  <router-view v-else></router-view>
</template>

<script>
export default {
  name: 'ViewTemplate',
  data () {
    return {
    }
  },
  props: {
    path: {
      type: String,
      default: () => ''
    }
  },
  components: {
  },
  created () {
    // console.log(this.path)
    // console.log(this.$route.path)
  }
}
</script>

<style>

</style>
